<?php

namespace CC\Entity;

use Doctrine\Common\Collections\ArrayCollection;

/**
 * @Entity (repositoryClass="CC\Entity\Repositories\Country");
 * @Table(name="countries")
 */
class Country
{

    /**
     * @id @Column(name="iso", type="string", length="3")
     */
    private $id;
    /** @Column(type="string", length="80") */
    private $name;
    /** @Column(type="string", length="80", name="printable_name") */
    private $printableName;
    /** @Column(type="string", length="3") */
    private $iso3;
    /** @Column(type="smallint", name="num_code") */
    private $numCode;
    
    /**
     * @OneToMany(targetEntity="Provider", mappedBy="country")
     */
    private $providers;

    function __construct()
    {
        $this->providers = new ArrayCollection();
    }

    public function getId()
    {
        return $this->id;
    }
    
    public function setIso($iso)
    {
        $this->id = $iso;
    }

    public function getName()
    {
        return $this->name;
    }

    public function getPrintableName()
    {
        return $this->printableName;
    }

    public function getIso3()
    {
        return $this->iso3;
    }

    public function getNumCode()
    {
        return $this->numCode;
    }

    public function setId($id)
    {
        $this->id = $id;
    }

    public function setName($name)
    {
        $this->name = $name;
    }

    public function setPrintableName($printableName)
    {
        $this->printableName = $printableName;
    }

    public function setIso3($iso3)
    {
        $this->iso3 = $iso3;
    }

    public function setNumCode($numCode)
    {
        $this->numCode = $numCode;
    }

}

?>
